
const setDate = () =>{
    var currentTime = new Date();
    var year = currentTime.getFullYear();
    var month = currentTime.getMonth() + 1;
    var date = currentTime.getDate();
    var hours = currentTime.getHours();
    
    var minutes = currentTime.getMinutes();
    
    var seconds = currentTime.getSeconds();
    var formattedTime =year + '-' + month + '-' + date + ' ' + hours + ':' + minutes + ':' + seconds;
    return formattedTime
}

module.exports = {setDate}